<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex flex-direction flex-wrap align-stretch benben-position-layout flex userEvaluation_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between userEvaluation_fd0_0'>
					<view class='flex flex-wrap align-center userEvaluation_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  userEvaluation_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<view class='flex flex-wrap align-center'>
						<text class='userEvaluation_fd0_0_c1_c0'>用户评价</text>
					</view>
					<view class='flex align-center justify-end userEvaluation_fd0_0_c0'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout userEvaluation_flex_1">
				<template v-for='(item,key0) in evaluateList'>
					<view class='flex flex-direction flex-wrap align-stretch userEvaluation_fd1_0' :key='key0'>
						<view class='flex flex-wrap align-center userEvaluation_fd1_0_c0'>
							<image class='self-center userEvaluation_fd1_0_c0_c0' mode="aspectFill"
								:src='item.user_avatar'></image>
							<view class='flex flex-direction flex-wrap align-stretch flex-sub'>
								<view class='flex flex-wrap align-center justify-between userEvaluation_fd1_0_c0_c1_c0'>
									<text
										class='flex-sub userEvaluation_fd1_0_c0_c1_c0_c0'>{{item.user_nickname}}</text>
									<text class='userEvaluation_fd1_0_c0_c1_c0_c1'>{{item.create_time}}</text>
								</view>
								<view class='flex flex-wrap align-center'>
									<template v-for="starNum in [1,2,3,4,5]">
										<image v-if="item.evaluate_star >= starNum" :key="starNum"
											class='userEvaluation_star1fd1_0_c0_c1_c1' mode="aspectFit"
											:src='STATIC_URL+"56.png"'></image>
										<image v-else :key="starNum" class='userEvaluation_star1fd1_0_c0_c1_c1'
											mode="aspectFit" :src='STATIC_URL+"57.png"'></image>
									</template>
								</view>
							</view>
						</view>
						<text class='userEvaluation_fd1_0_c1'>{{item.evaluate_content}}</text>
						<view class='flex flex-wrap align-center userEvaluation_fd1_0_c2'>
							<template v-for='(child,key1) in item.evaluate_picture'>
								<view class='flex flex-wrap align-center userEvaluation_fd1_0_c2_c0' :key='key1'>
									<image class='userEvaluation_fd1_0_c2_c0_c0' mode="aspectFill" :src='child'
										@tap.stop="multiImagePreview(child,item.evaluate_picture,'')"></image>
								</view>
							</template>

						</view>
						<view class='flex flex-wrap align-center userEvaluation_fd1_0_c3'>
						</view>
					</view>
				</template>
				<fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
					:listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
			</view>

			<!---flex布局flex布局结束-->


		</view>
	</view>
</template>
<script>
	import pagingList from '@/common/mixin/paging_list.js';
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},
		mixins: [pagingList],

		data() {
			return {
				"minixPagingListsApi": "",
				"pageingListApiMethod": "",
				"allowOnloadGetList": false,
				"evaluateList": [],
				"id": null
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			let {
				id
			} = options
			if (id !== undefined) this.id = id
			this.getEvaluateFunc()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {
			this.getEvaluateFunc()
		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//获取评价信息
			getEvaluateFunc() {
				this.minixPagingListsApi = global.apiUrls.post6393f56c84ece;
				this.pageingListApiMethod = 'get';
				this.allowOnloadGetList = false;
				this.pagingListPostDataContent = {
					order_id: this.id
				}
				this.listData = [];
				this.evaluateList = this.listData;
				this.pagingListToggle();

			},
			pagingListPostData() {
				return this.pagingListPostDataContent
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #fff;
		background-size: 100% auto;
	}

	.userEvaluation_flex_0 {
		border-bottom: 1px solid #eee;
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.userEvaluation_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333333;
	}

	.userEvaluation_fd0_0_c0_c0 {
		font-size: 36rpx;
		color: #333;
		font-weight: 500;
	}

	.userEvaluation_fd0_0_c0 {
		width: 100rpx;
	}

	.userEvaluation_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		line-height: 88rpx;
	}

	.userEvaluation_flex_1 {
		background: #fff;
		background-size: 100% auto !important;
		border-radius: 24rpx 24rpx 0rpx 0rpx;
	}

	.userEvaluation_fd1_0_c3 {
		border-bottom: 1px solid #eee;
		width: 702rpx;
		height: 1rpx;
		margin: 0rpx 24rpx 0rpx 24rpx;
	}

	.userEvaluation_fd1_0_c2_c0_c0 {
		width: 226rpx;
		height: 226rpx;
		border-radius: 16rpx;
	}

	.userEvaluation_fd1_0_c2_c0 {
		margin: 0rpx 6rpx 24rpx 6rpx;
	}

	.userEvaluation_fd1_0_c2 {
		padding: 0rpx 18rpx 0rpx 18rpx;
		margin: 0rpx 0rpx 8rpx 0rpx;
	}

	.userEvaluation_fd1_0_c1 {
		font-size: 28rpx;
		font-weight: 400;
		color: #333333;
		line-height: 40rpx;
		margin: 0rpx 24rpx 24rpx 24rpx;
	}

	.userEvaluation_star1fd1_0_c0_c1_c1 {
		height: 19rpx;
		margin: 0rpx 3rpx 0rpx 3rpx;
		width: 19rpx;
	}

	.userEvaluation_star1fd1_0_c0_c1_c1 {
		width: 19rpx;
		height: 19rpx;
		margin: 0rpx 3rpx 0rpx 3rpx;
	}

	.userEvaluation_fd1_0_c0_c1_c0_c1 {
		font-size: 24rpx;
		font-weight: 400;
		color: #7F7F7F;
		line-height: 33rpx;
	}

	.userEvaluation_fd1_0_c0_c1_c0_c0 {
		color: #333333;
		font-size: 32rpx;
		font-weight: 400;
		line-height: 40rpx;
		margin: 0rpx 32rpx 0rpx 0rpx;
		-webkit-line-clamp: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
	}

	.userEvaluation_fd1_0_c0_c1_c0 {
		margin: 0rpx 0rpx 8rpx 0rpx;
	}

	.userEvaluation_fd1_0_c0_c0 {
		width: 56rpx;
		height: 56rpx;
		border-radius: 28rpx 28rpx 28rpx 28rpx;
		margin: 0rpx 16rpx 0rpx 0rpx;
	}

	.userEvaluation_fd1_0_c0 {
		margin: 0rpx 24rpx 24rpx 24rpx;
	}

	.userEvaluation_fd1_0 {
		padding: 32rpx 0rpx 0rpx 0rpx;
	}
</style>